﻿@model eShop.Web.Admin.Models.TopicListModel

@section header{
    <title>活动专题列表</title>
    <link type="text/css" rel="stylesheet" href="/administration/css/site.css" />
    <link type="text/css" rel="stylesheet" href="/administration/css/style.css" />
    <script type="text/javascript" src="/administration/scripts/jquery.js"></script>
    <script type="text/javascript" src="/administration/scripts/showlist.js"></script>
    <script type="text/javascript" src="/components/my97datepicker/WdatePicker.js"></script>
}

@section body{
    <h1 class="rightH1">
        活动专题管理 &gt;&gt; 活动专题列表
        <div class="right">
            <a href="@Url.Action("add")" class="menuBT"><img src="/administration/images/add.jpg" />添加</a>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>
    @using (Html.BeginForm("list", "topic"))
    {
        <div class="dataListSearch">
            <table height="32">
                <tbody>
                    <tr>
                        <td width="35"><img id="searchImg" src="/administration/images/search1.gif" /></td>
                        <td>编号：</td>
                        <td width="100">@Html.TextBox("TopicSN", Model.TopicSN, new { height = "12" })</td>
                        <td>&nbsp;&nbsp;&nbsp;标题：</td>
                        <td width="130">@Html.TextBox("TopicTitle", Model.TopicTitle, new { height = "18" })</td>
                        <td>&nbsp;&nbsp;&nbsp;开始时间：</td>
                        <td width="130">@Html.TextBox("StartTime", Model.StartTime, new { height = "18", onfocus = "WdatePicker({el:'StartTime'})" })</td>
                        <td>&nbsp;&nbsp;&nbsp;结束时间：</td>
                        <td width="130">@Html.TextBox("EndTime", Model.EndTime, new { height = "18", onfocus = "WdatePicker({el:'EndTime'})" })</td>
                        <td><input id="SearchTopic" name="SearchTopic" type="image" class="searchBut submit" src="/administration/images/s.jpg" /></td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div style="padding-left:15px;">
            <table class="tablelist">
                <thead>
                    <tr>
                        <th width="20" align="center"><input type="checkbox" id="allSelect" /></th>
                        <th width="50" align="left">序号</th>
                        <th width="140" align="left">编号</th>
                        <th width="240" align="left">标题</th>
                        <th width="140" align="left">开始时间</th>
                        <th width="140" align="left">结束时间</th>
                        <th width="50" align="left">显示</th>
                        <th width="80" align="left">管理操作</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (DataRow row in Model.TopicList.Rows)
                    {
                        <tr>
                            <td align="left"><input type="checkbox" value="@row["topicid"]" selectItem="true" name="topicId" /></td>
                            <td>@row["topicid"]</td>
                            <td>@row["sn"]</td>
                            <td>@row["title"]</td>
                            <td>@row["starttime"]</td>
                            <td>@row["endtime"]</td>
                            <td>
                                @if (row["isshow"].ToString() == "1")
                                {
                                    @:是
    }
                                else
                                {
                                    @:否
    }
                            </td>
                            <td>
                                @Html.ActionLink("[编辑]", "edit", new { topicId = row["topicid"] }, new { @class = "editOperate" })
                                @Html.ActionLink("[删除]", "del", new { topicId = row["topicid"] }, new { @class = "deleteOperate" })
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
        <div class="dataListEdit">
            <div class="page">
                @Html.AdminPager(Model.PageModel)
            </div>
        </div>
    }
}